package com.xiaomage.view.animation11

import android.content.Intent
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.view.animation.GridLayoutAnimationController
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        bt_layout_animation_normal.setOnClickListener{
            intent= Intent(this,LayoutAnimationNormalActivity::class.java)
            startActivity(intent)
        }
        bt_layout_animation_reverse.setOnClickListener{
            intent= Intent(this,LayoutAnimationReverseActivity::class.java)
            startActivity(intent)
        }
        bt_layout_animation_random.setOnClickListener{
            intent= Intent(this,LayoutAnimationRandomActivity::class.java)
            startActivity(intent)
        }
        bt_layout_animation_controller.setOnClickListener{
            intent= Intent(this,LayoutAnimationControllerActivity::class.java)
            startActivity(intent)
        }
        bt_grid_layout_animation.setOnClickListener{
            intent= Intent(this,GridLayoutAnimationActivity::class.java)
            startActivity(intent)
        }
        bt_grid_layout_animation_controller.setOnClickListener{
            intent= Intent(this,GridLayoutAnmationControllerActivity::class.java)
            startActivity(intent)
        }
    }
}
